<template>
	<view class="body">
		<u-form :model="model" ref="uForm">
			<u-form-item class="uformitem" :label-position="labelPosition" label="用户名" prop="username" label-width="150">
				<u-input :border="border" placeholder="请输入用户姓名" v-model="model.username" type="text"></u-input>
			</u-form-item>
			<u-form-item class="uformitem" :label-position="labelPosition" label="手机号码" prop="mobile" label-width="150">
				<u-input :border="border" placeholder="请输入手机号" v-model="model.mobile" type="number"></u-input>
			</u-form-item>
			<u-form-item class="uformitem" :label-position="labelPosition" label="验证码" prop="code" label-width="150">
				<u-input :border="border" placeholder="请输入验证码" v-model="model.code" type="text"></u-input>
				<u-button slot="right" plain shape="circle" size="mini" @click="getCode">{{ifsms.text}}</u-button>
			</u-form-item>
			<u-form-item class="uformitem" :label-position="labelPosition" label="登录密码" prop="password" label-width="150">
				<u-input :border="border" placeholder="请输入登录密码" v-model="model.password" type="password"></u-input>
			</u-form-item>
			<u-form-item class="uformitem" :label-position="labelPosition" label="确认密码" prop="confirm_password" label-width="150">
				<u-input :border="border" placeholder="请输入确认登录密码" v-model="model.confirm_password" type="password"></u-input>
			</u-form-item>
		</u-form>
		<view class="submitBtn">
			<u-button @click="submit" type="success" shape="circle">确认重置</u-button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				model: {
					username: '',
					mobile: '',
					code: '',
					password: '',
					confirm_password: ''
				},
				border: false,
				labelPosition: 'left',
				ifsms: {
					ifbut: true,
					ifnum: 60,
					text: "获取验证码",
					defnum: 60
				}
			}
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
